<div class="container">
	<?php $this->headTitle($this->headtitle,'SET'); ?>
	<?php 
		if($this->object != null){
	?>
	<h1><?php echo $this->object->name; ?></h1>
	<div class="row">
		<div class="span6">
			<div class="thumbnail">
			<fieldset>
			  <legend><?php echo $this->translate('Add offer'); ?></legend>
						<?php echo $this->form; ?>
			</fieldset>
			</div>
		</div>
		<div class="span6">
			<div class="alert alert-info">
			<button class="close" data-dismiss="alert" type="button">×</button>
			Drag the <strong>Marker</strong> to update the venue's location on the map 
			</div>
			<div id="my_map" class="gmap3" style="height: 460px; width: 460px; margin: auto; border: 1px dashed #C0C0C0;">
				<?php  echo $this->action('addresspicker', 'map', null, array());  ?>
			</div>
			<br>
		</div>
		<div class="span6">
			<div id="myCarousel" class="carousel slide">
			    <!-- Carousel items -->
			    <div class="carousel-inner">
					<?php 	
					$active = 'active ';
							foreach ($this->object->images as $image)
							{
								
					?>
						<div class="<?php echo $active; ?>item"><a class="thumbnail" href="#" ><img alt="#" src="<?php echo $this->baseUrl('img/object/'.$image->url);?>"></a></div>
					<?php 
								if($active == 'active ')
									$active = '';
							}
					?>
			    
			    
			    </div>
			    <!-- Carousel nav -->
			    <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
			    <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
			</div>
			<div class="thumbnail">
			<p>Description: <?php echo $this->object->description; ?></p>
			</div>
		</div>
	</div>
	<?php 
			
		}
	?>
	<?php if(!empty($this->alert)):?>
	<div class="alert alert-error">
	<button class="close" data-dismiss="alert" type="button">×</button>
	<?php 	echo $this->alert; ?>
	</div>
	<?php endif;?>
</div>